﻿@using Models
@model List<News>
@{
    ViewBag.Title = "Account controll";
}

<h2>My news</h2>
@Html.ActionLink("Add news", "AddNews","Home") <span></span>@Html.ActionLink("My pm","Pm","AccountControll")
<br />
<br /><br />
@if (Model != null)
{
    for (int i = ViewBag.pager.StartIndex - 1; i <= ViewBag.pager.EndIndex - 1; i++)
    {

        ViewBag.i = i;
        @Html.Partial("_oneNews")


    }
}